<template>
  <view class="normal-login-container">

    <view class="item-wrap" style="margin-bottom: 0">
      <view class="lineBottom10">
        <uni-section title="入库信息" type="line"/>
      </view>

      <view style="margin: 8rpx 20rpx 8rpx 20rpx">
        <uni-forms ref="ruleForm" :rules="rules" label-position="left" :model="ruleForm"
                   labelWidth="auto">
			<uni-forms-item label="车牌号:" name='carInStorage.carNo'>
			  <text  >{{ isNoEmpty(ruleForm.carInStorage.carNo) }}</text>
			</uni-forms-item>
			<uni-forms-item label="年检线上线下:" name='carInStorage.inStorageOnlineOffline'>
			  <text  v-if="ruleForm.carInStorage.inStorageOnlineOffline=='1'">线上</text>
			  <text  v-if="ruleForm.carInStorage.inStorageOnlineOffline=='2'">线下</text>
			</uni-forms-item>
			<uni-forms-item label="年检到期日:" name='carInStorage.inStorageInspectionExpire'>
			  <text  >{{ isNoEmpty(ruleForm.carInStorage.inStorageInspectionExpire) }}</text>
			</uni-forms-item>
			<uni-forms-item label="是否我司年检:" name='carInStorage.isOurCompanyInspection'>
			  <text  v-if="ruleForm.carInStorage.isOurCompanyInspection=='0'">是</text>
			  <text  v-if="ruleForm.carInStorage.isOurCompanyInspection=='1'">否</text>
			</uni-forms-item>
			<uni-forms-item label="入库里程(km):" name='carInStorage.inboundMileage'>
			  <text  >{{ isNoEmpty(ruleForm.carInStorage.inboundMileage) }}</text>
			</uni-forms-item>
			<uni-forms-item label="入库里程表附件:" name='carInStorage.inboundMileageOss'>
					<image-common disabled :up-type="2" v-model="ruleForm.carInStorage.inboundMileageOss"/>
			</uni-forms-item>
			  <uni-forms-item label="入库油量(%):" name='carInStorage.inboundOilQuantity'>
				<text>{{ isNoEmpty(ruleForm.carInStorage.inboundOilQuantity)  }}</text>
			  </uni-forms-item>
			  <uni-forms-item label="入库油量附件:" name='carInStorage.inboundOilQuantityOss'>
				<image-common disabled :up-type="2" v-model="ruleForm.carInStorage.inboundOilQuantityOss"/>
			  </uni-forms-item>

			  <uni-forms-item label="行使证:" name='carInStorage.drivingLicenseOss'>
				<image-common disabled :up-type="2" v-model="ruleForm.carInStorage.drivingLicenseOss"/>
			  </uni-forms-item>

			  <uni-forms-item label="车辆照片:" name='carInStorage.carPhotoOss'>
				<image-common disabled :up-type="2" v-model="ruleForm.carInStorage.carPhotoOss"/>
			  </uni-forms-item>

			  <uni-forms-item label="登记照片:" name='carInStorage.registrationCertificateOss'>
				<image-common disabled :up-type="2" v-model="ruleForm.carInStorage.registrationCertificateOss"/>
			  </uni-forms-item>
			  <uni-forms-item label="入库年检附件:" name='carInStorage.inspectionOss'>
						<image-common disabled :up-type="2" v-model="ruleForm.carInStorage.inspectionOss"/>
			  </uni-forms-item>
			  <uni-forms-item label="附件:" name='carInStorage.attachmentOss'>
			  				<image-common disabled :up-type="2" v-model="ruleForm.carInStorage.attachmentOss"/>
			  </uni-forms-item>
			  
			  <uni-forms-item label="备注:">	
					<text >{{ isNoEmpty(ruleForm.carInStorage.remark) }}</text>
			  </uni-forms-item>
        </uni-forms>
      </view>
    </view>
  </view>
</template>

<script>
import constant from '../../../utils/constant';
export default {
  name: 'improveInfo',//基础信息
  dicts: ['customer_type', 'car_business_type'],
  props: {
   value: {
     type: Object,
     default: {}
   },
   boole: {
     type: Boolean,
     default: true,
   },
  
  },
 computed: {
   ruleForm: {
     get() {
       let that = this
       const proxy = new Proxy(that.value, {
         get(target, key) {
           return Reflect.get(target, key)
         },
         set(target, key, value) {
           that.$emit('input', {...target, [key]: value})
           return true
         }
       })
       return proxy
     }
   },
 },
  data() {
    return {
		
	}
  },
  created() {
		console.log(this.ruleForm,'ruleForm')
  },
  mounted() {
  },
  methods: {
	 
  },
};
</script>

<style lang="scss" scoped>
.car-wrap {
  display: flex;
  flex-direction: column;
  padding: 20rpx 20rpx 20rpx 0;
  border: 1px solid #dadada;
  margin: 10rpx 20rpx;
  border-radius: 8rpx;

}


</style>


